@extends('admin.common.base-master')

@section('html-head')
    <link href="{{url('css/admin/pagenum.css')}}" rel="stylesheet" />
@endsection

@section('html-body')
    <!-- content start -->
    <div id="content">
        <!-- cur-position start -->
        <div id="cur-position">
            <span class="tit">当前位置：</span>
            <a href="#">用户管理</a>
        </div>
        <!-- cur-position end -->

        <!--二级目录-->
        @include('admin.common.user-header')

        <div class="table-box">
            <table class="table">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>用户手机</th>
                    <th>公司logo</th>
                    <th>企业名称</th>
                    <th>行业</th>
                    <th>企业规模</th>
                    <th>联系人</th>
                    <th>联系电话</th>
                    <th>创建时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody id="fansinfo">
                @if(count($companyInfos) > 0)
                    @foreach($companyInfos as $companyInfo)
                        <tr>
                            <td>{{$companyInfo->id}}</td>
                            <td>{{$companyInfo->phone}}</td>
                            <td class="account-td" style="width: 20px;">
                                <span class="photo">
                                    <img src="{{$companyInfo->photo_url}}" alt="">
                                </span>
                            </td>
                            <td>{{$companyInfo->name}}</td>
                            <td>{{$companyInfo->trade}}</td>
                            <td>{{$companyInfo->size}}</td>
                            <td>{{$companyInfo->contacts}}</td>
                            <td>{{$companyInfo->contact_phone}}</td>
                            <td>{{$companyInfo->created_at}}</td>
                            <td><a href="{{route('Admin.Home.companyInfoListDetail')}}?id={{$companyInfo->id}}" target="_blank">查看详情</a></td>
                        </tr>
                    @endforeach
                @endif
                </tbody>
            </table>
            <?php echo $companyInfos->render(); ?>
        </div>
    </div>
    <!-- content end -->

@endsection